home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac: Not for Sale
/
Another.not.for.sale (Australia).iso
/
fade into you
/
getting there
/
WWW
/
MacHTTP Extras
/
Script Tools
/
Examples
/
Shutdown Example
< prev
Wrap
Text File
|
1993-07-08
|
277b
|
7 lines
set result to display dialog "Are you sure you want to shutdown?" ¬
buttons {"Shutdown", "Restart", "Cancel"} ¬
default button "Cancel"
if button returned of result = "Shutdown" then ¬
shutdown without rest
if button returned of result = "Restart" then ¬
shutdown with rest